using Godot;
using System;

public partial class NMyButton : Button
{
	//信号名+EventHandler
	[Signal]
	public delegate void AddMoneyEventHandler(int money);
	// Called when the node enters the scene tree for the first time.
	public override void _Ready()
	{
	}

	// Called every frame. 'delta' is the elapsed time since the previous frame.
	public override void _Process(double delta)
	{
	}

	void _on_pressed()
	{
		GD.Print("老朱说 Pressed");
		//发送信号
		EmitSignal(SignalName.AddMoney, 100);
	}
}
